home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / human interface toolbox / handyscrollingsample / readme < prev    next >
Encoding:
Text File  |  2000-06-23  |  4.0 KB  |  79 lines

  1. Handy Scrolling Sample
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8. Illustrates a number of techniques that can be used for providing convenient and easy to use scrolling facilities in your application's windows.
  9.  
  10. Scrolling techniques illustrated include:
  11. - implementing live scrolling scroll bars,
  12. - drawing proportional scroll bars,
  13. - using the hand cursor for scrolling allowing users to 'virtually' grab a window's contents and drag it around with the mouse.
  14. - scrolling using the keyboard.
  15.  
  16. Other interesting techniques illustrated include:
  17. - Setting the cursor and handling mouse moved events for various regions of the screen,
  18. - Optimizing drawing performance by limiting drawing operations to those ones that will have a visual effect on the screen (This can dramatically improve the speed of drawing during scrolling operations).
  19.  
  20. It's just plain handy!!!
  21.  
  22.  
  23. Copyright:
  24. © Copyright 2000 Apple Computer, Inc. All rights reserved.
  25.    
  26.  
  27.  
  28. Disclaimer:
  29. IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribution of this Apple software constitutes acceptance of these terms.  If you do not agree with these terms, please do not use, install, modify or redistribute this Apple software.
  30.  
  31. In consideration of your agreement to abide by the following terms, and subject to these terms, Apple grants you a personal, non-exclusive license, under Apple’s copyrights in this original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the Apple Software, with or without modifications, in source and/or binary forms; provided that if you redistribute the Apple Software in its entirety and without modifications, you must retain this notice and the following text and disclaimers in all such redistributions of the Apple Software.  Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to endorse or promote products derived from the Apple Software without specific prior written permission from Apple.  Except as expressly stated in this notice, no other rights or licenses, express or implied, are granted by Apple herein, including but not limited to any patent rights that may be infringed by your derivative works or by other works in which the Apple Software may be incorporated.
  32.  
  33. The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
  34.  
  35. IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  36.  
  37.  
  38.  
  39. Change History (most recent first):
  40. Tue, Feb 8, 2000 -- created
  41.  
  42.  
  43.  
  44. Files:
  45.  
  46. ':HandySample.prj Data:' - CodeWarrior project data
  47.  
  48. :obj: - compiled object files
  49.  
  50. HandySample - the compiled application.
  51.  
  52. HandySample.c - the main program and event dispatching code for the program.
  53.  
  54. HandySample.h - prototypes for routines defined in HandySample.c.
  55.  
  56. HandySample.prj - CodeWarrior project file.
  57.  
  58. HandySample.r - MPW Rez file for the program.
  59.  
  60. HandySample.rsrc - ResEdit resource file containing resources used in the program.
  61.  
  62. MakeFile - MPW make file for building the program.
  63.  
  64. ReadMe - see ReadMe.
  65.  
  66. HandyWindow.c - Routines implementing the windows displayed by the program.
  67.  
  68. HandyWindow.h - prototypes for routines defined in HandyWindow.c.
  69.  
  70. SampleUtils.c - utility routines set aside to simplify the example.
  71.  
  72. SampleUtils.h - prototypes for routines defined in SampleUtils.c.
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.